package com.dmcloud.system.entity;

import com.dmcloud.common.base.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysUser extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 租户编号
     */
    private String tenantId;

    /**
     * 账号
     */
    private String account;

    /**
     * 密码
     */
    private String password;

    /**
     * 昵称
     */
    private String name;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 手机
     */
    private String phone;

    /**
     * 生日
     */
    private Date birthday;

    /**
     * 性别
     */
    private Integer sex;

    /**
     * 头像地址
     */
    private String headUrl;

    /**
     * 身份证号
     */
    private String cardNo;

    /**
     * 部门id
     */
    private Integer deptId;

    /**
     * 是否可用
     */
    private Integer enabled;

    /**
     * 账户是否锁定
     */
    private Integer accountNonLocked;

    /**
     * 账户是否过期
     */
    private int accountNonExpired;

    private Integer credentialsNonExpired;



}
